using System;
using System.Collections.Generic;
using System.Collections;
using System.Text;
using System.Drawing;
using System.Windows.Forms;


namespace cs2335.CCT
{
    class TreeNode : ITreeNode
    {
        protected ITreeNodeCollection nodeList;
        protected string text;
        protected bool expanded;

        public TreeNode()
        {
            nodeList = new TreeNodeCollection();
            text = " ";
            expanded = false;
        }

        public bool Expanded
        {
            get { return expanded; }
            set { expanded = value; }
        }


        #region ITreeNode Members


        public ITreeNodeCollection Nodes
        {
            get { return nodeList; }
        }

        public string Text
        {
            get
            {
                return text;
            }
            set
            {
                text = value;
            }
        }

        #endregion
    }
}